<!DOCTYPE>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员中心</title>
<link href="__PUBLIC__/home/css/style.css" type="text/css" rel="stylesheet" />
<script src="__PUBLIC__/home/js/jquery-1.7.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/home/js/common.js"  type="text/javascript"></script>
<script type="text/javascript" src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script>
<script src="http://static.runoob.com/assets/jquery-validation-1.14.0/dist/jquery.validate.min.js"></script>
<script src="__PUBLIC__/home/js/message_verify.js"></script>
</head>
<body class="index">



<div class="w1200">
	<div class="position"><a href="#">首页</a> > <a href="#">会员中心</a> > <a href="#">个人资料</a></div>
    
    <div class="m_d">
    	<div class="left">
        	<dl><dt>账户管理</dt>
            <dd>
            	<a href="{$member}" id="per_info">修改密码</a>
                <a href="{$addaddress}" id="re_pass">添加地址</a>
                <a href="#" class="on" id="allorder">订单管理</a>
                <a href="#">绑定会员卡</a>
                <a href="#">绑定银行卡</a>
                <a href="#">升级管理</a>
                <a href="#">账单列表</a>
                <a href="#">提现申请</a>
            </dd>
            </dl>
        </div>
        <div class="right">
        	<dl class="dl01">
            	<dt><img src="__PUBLIC__/home/images/ico04.jpg"/></dt>
                <include file="up_headimg"/>
            </dl>
            <dl class="dl02 personinfo">
            	<dt>
                	<span>订单管理</span>
                </dt>
                <dd>
                    <div>
                        <a class="order-style all">所有订单</a><a class="order-style ing">待付款订单</a><a class="order-style ed">已付款订单</a>
                    </div>
                    <div>&nbsp;</div>
                    <div id="unseen">
                        <div class="table table-ing" style="display: none;">
                            <table>
                                <tr><td colspan="4">&nbsp;</td></tr>
                                <tr class="nopay"><td colspan="4"><strong>*待付款订单：<a style="color: red;">（点击订单号查看详情）</a></strong></td></tr> 
                                <tr><td colspan="4">&nbsp;</td></tr>
                            </table>
                            <table width="100%" style="border-collapse: collapse;">
                                    <tr style="" class="paying">
                                        <td width="20%" align="center">订单号</td>
                                        <td width="25%" align="center">购买商品</td>
                                        <td width="25%" align="center">订单地址</td>
                                        <td width="10%" align="center">总价</td>
                                        <td width="10%" align="center">取消订单</td>
                                        <td width="10%" align="center">立即支付</td>
                                    </tr> 
                            </table>
                            <div>
                                <table border="1" cellspacing="0" width="100%" style="border:1px solid lightgray;border-collapse: collapse;" class="nopay_tab">          
                                    <foreach name="order" item="value" id='paying'>
                                        <php>if($value['status']==="待付款"){</php>
                                            <tr>
                                                <td width="20%" align="center"><a href="" alt="点击查看详情！" title="点击查看详情！">{$value.order_num}</a></td>
                                                <td width="25%" align="center">{$value.coms}</td>
                                                <td width="25%" align="center">{$value.address_id}</td>
                                                <td width="10%" align="center">￥{$value.all_price}</td>
                                                <td  width="10%" align="center"><a href="{$del}?payid={$value.id}"><button class="paybtn">取消订单</button></a></td>
                                                <td width="10%" align="center"><a href="{$pay}?payid={$value.id}"><button class="paybtn_on">立即支付</button></a></td>
                                            </tr>
                                        <php>}</php>
                                    </foreach>         
                                </table>
                            </div>
                        </div>
                        
                        <div class="table table-ed" style="display: none;">
                            <table>
                                <tr><td colspan="4">&nbsp;</td></tr>
                                <tr><td colspan="4"><strong>*已付款订单：<a style="color: red;">（点击订单号查看详情）</a></strong></td></tr> 
                                <tr><td colspan="4">&nbsp;</td></tr>
                            </table>
                            <table width="100%" style="border-collapse: collapse;">
                                <tr  class="paying">
                                    <td width="20%" align="center">订单号</td>
                                    <td width="25%" align="center">购买商品</td>
                                    <td width="25%" align="center">订单地址</td>
                                    <td width="10%" align="center">总价</td>
                                    <td width="10%" align="center">状态</td>
                                </tr>
                            </table>
                            <div style="overflow-y:scroll;width:100%;height: 100px;">
                                <table border="1" cellspacing="0" width="100%" style="border:1px solid lightgray;border-collapse: collapse;overflow-y:scroll;" class="nopay_tab">
                                    <foreach name="order" item="value">
                                        <php>if($value['status']==="已付款"){</php>
                                            <tr>
                                                <td><a href="" alt="点击查看详情！" title="点击查看详情！">{$value.order_num}</a></td>
                                                <td>{$value.coms}</td>
                                                <td>{$value.address_id}</td>
                                                <td>￥{$value.all_price}</td>
                                               <td>{$value.status}</td>
                                            </tr>
                                        <php>}</php>
                                    </foreach>
                                </table>
                            </div>
                        </div>
                        
                        <div class="table table-all">
                            <table>
                                <tr><td colspan="4">&nbsp;</td></tr>
                                <tr><td colspan="4"><strong>*所有订单：<a style="color: red;">（点击订单号查看详情）</a></strong></td></tr> 
                                <tr><td colspan="4">&nbsp;</td></tr>
                            </table>
                            <table width="100%" style="border-collapse: collapse;">
                                <tr  class="paying">
                                    <td width="20%" align="center">订单号</td>
                                    <td width="25%" align="center">购买商品</td>
                                    <td width="25%" align="center">订单地址</td>
                                    <td width="10%" align="center">总价</td>
                                    <td width="10%" align="center">状态</td>
                                </tr>
                            </table>
                            <div style="overflow-y:scroll;width:100%;height: 100px;">
                                <table border="1" cellspacing="0" width="100%" style="border:1px solid lightgray;border-collapse: collapse;overflow-y:scroll;" class="nopay_tab">
                                    <foreach name="order" item="value">
                                            <tr>
                                                <td width="20%" align="center"><a href="" alt="点击查看详情！" title="点击查看详情！">{$value.order_num}</a></td>
                                                <td width="25%" align="center">{$value.coms}</td>
                                                <td width="25%" align="center">{$value.address_id}</td>
                                                <td width="10%" align="center">￥{$value.all_price}</td>
                                               <td width="10%" align="center">{$value.status}</td>
                                            </tr>
                                    </foreach>
                                </table>
                            </div>
                        </div>
                        
                    </div>
                </dd>
            </dl>
        </div>
        <div class="clear"></div>
    </div>
</div>
<script type="text/javascript">
    $(function(){
        $('.paybtn').on('click',function(){
            $(this).parent().parent().parent().remove();
            $.get($(this).parent().attr('href'),function(){});
            return false;
        });
    });
</script>
<script type="text/javascript">
    $('.all').on('click',function(){
        $('#unseen').find('.table').css('display','none');
        $('#unseen').find('.table-all').css('display','block');
    });
    $('.ing').on('click',function(){
        $('#unseen').find('.table').css('display','none');
        $('#unseen').find('.table-ing').css('display','block');
    });
    $('.ed').on('click',function(){
        $('#unseen').find('.table').css('display','none');
        $('#unseen').find('.table-ed').css('display','block');
    });
</script>
<!-- <script type="text/javascript">
    $(function(){
        $("#per_info").on('click',function(){
            $('.right dl').css('display','none');
            $('.personinfo').css('display','block');
            $('.dl01').css('display','block');
        });
        $("#re_pass").on('click',function(){
            $('.right dl').css('display','none');
            $('.reviewpassword').css('display','block');
            $('.dl01').css('display','block');
        });
        $("#allorder").on('click',function(){
            $('.right dl').css('display','none');
            $('.reviewpassword').css('display','block');
            $('.dl01').css('display','block');
        });

    });
</script> -->
<!--footer-->


</body>
</html>
